﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.EncryptionDecryptionService.Models
{
    /// <summary>
    /// 加密中间件配置选项
    /// </summary>
    public class EncryptionMiddlewareOptions
    {
        /// <summary>
        /// 请求头中AES密钥的名称
        /// </summary>
        public string AesKeyHeaderName { get; set; } = "X-Encrypted-Aes-Key";

        /// <summary>
        /// 请求头中加密算法的名称
        /// </summary>
        public string AlgorithmHeaderName { get; set; } = "X-Encryption-Algorithm";

        /// <summary>
        /// 需要跳过加解密的路径列表
        /// </summary>
        public List<string> ExcludePaths { get; set; } = new List<string>();
    }
}
